package com.orange.off.cloud.cloudoff.adapters;

import android.content.Context;
import android.widget.TextView;

import com.orange.off.cloud.cloudoff.R;
import com.orange.off.cloud.cloudoff.base.ListBaseAdapter;
import com.orange.off.cloud.cloudoff.base.SuperViewHolder;
import com.orange.off.cloud.cloudoff.model.PersonalAuthentication_ListBean;

/**
 * 个人中心---身份认证adapter
 *
 * @author smile
 */
public class PersonalAuthenticationAdapter extends ListBaseAdapter<PersonalAuthentication_ListBean> {

    public PersonalAuthenticationAdapter(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId() {
        return R.layout.myauthentication_item;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        ViewHolder viewHolder = new ViewHolder();
        PersonalAuthentication_ListBean item = mDataList.get(position);

        viewHolder.tv_recommendedType = holder.getView(R.id.tv_recommendedType);
        viewHolder.tv_projectName = holder.getView(R.id.tv_projectName);
        viewHolder.tv_authenticationStatus = holder.getView(R.id.tv_authenticationStatus);
        viewHolder.tv_recommendedType.setText(item.type);
        viewHolder.tv_projectName.setText(item.xm);
        viewHolder.tv_authenticationStatus.setText(item.zt);
    }

    class ViewHolder {
        TextView tv_recommendedType,//推荐类型
                tv_projectName,//项目名称
                tv_authenticationStatus;//认证状态

    }

}
